package com.diorsunion.hedge.io;

import java.io.Serializable;

/**
 * Created by harley-dog on 2016/5/19.
 */
public class Remoter implements Serializable{
    private static final long serialVersionUID = -11234563453L;
    public String id;
    public String address;
    public int port;
    public boolean active;
    public boolean open;
    public boolean writable;
    public boolean registered;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Remoter client = (Remoter) o;

        return id.equals(client.id);

    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }
}
